Skip to main content

All Questions

1vote
3answers
175views

$scope is not defined in script 2

Unable to fetch ng-change selected value from the dropdown. I'm trying to pass the selected value from the dropdown to API call in script 2 as below, but unable to do so. In the chrome developer tools ...
user11130182's user avatar
0votes
2answers
119views

use a directive with public scope as a isolated scope

Some time ago I have written a custom directive and it is now used at many places inside the code (not possible to change it anymore). It has a public scope and that was fine until today. Now I want ...
Elio's user avatar
  • 478
1vote
0answers
167views

AngularJS multi screen validation on last step

I have an angularJS application. I have implemented a generic workflow using $routeProvider, templateUrl & Controllers. Each step(screen) is verified when user click on next button and moves to ...
Fareed's user avatar
0votes
0answers
48views

Cross Directive Functional Binding in Angular 1.5

In an angular 1.5 application, both directive are independent inside same application A demo of the situation shows here https://codepen.io/adamchenwei/pen/qXRGQp You will see an error where in ...
ey dee ey em's user avatar
-1votes
1answer
53views

Using directive way to build up a form with some input values

I am trying to get some input fields which collect the info after clicking the submit button using directive method and pass these values as arguments to a function. This is my code which doesn't work ...
Dalek's user avatar
  • 4,328
1vote
0answers
274views

Angular.js + ui-router wrong controller

I'm using angular 1.6.1 and angular-ui-router 0.3.2. I have basic routes set-up as follow: { state: 'home', config: { url: '/home', templateUrl: '...', title: 'home' } }, { state:...
Jorayen's user avatar
  • 1,971
0votes
3answers
68views

Why do I need a $watch when using function in controller in combination with a directive

I know and can imagine why I need the commented lines of code to let this work. But I can't found the technical reason. Why is the field not update when you click on the button? (the $watch fixed the ...
Michel's user avatar
  • 9,450
0votes
2answers
508views

Data share between directive and controller in AngularJS

I need to take a step back and understand the data flow between controllers to directive, directive to controller and the inline template vs template url in directives. I have customDirective ...
Mad-D's user avatar
  • 4,689
0votes
3answers
658views

AngularJS, calculation addition (+) is not working

I tried to calculate $scope values through angular controller. For instance: the below code works in order to multiply values inside brackets. However, addition(+) is working like 400+200 = 400200. ...
Abel Anojan Sithamparappillai's user avatar
0votes
3answers
2kviews

How to add a progress bar in ionic app

I really need your help, I am new to ionic project. Currently working on a project. This app pulls blog post from wordpress using $http. How can I add a progress bar to tell the users that the page is ...
Kel Wayne's user avatar
0votes
1answer
507views

Retrieving model values from dynamically opened controller's scope in AngularJS

I am developing an Web Application using Angular JS. I am a beginner to AngularJS. In my app, I need to dynamically add and remove elements. I use directive for it. Adding and removing elements is ...
Wai Yan Hein's user avatar
0votes
2answers
200views

Controller data not passed to directive

I started looking into angular and cannot seem to figure out why my data is not passed to my directive. I have code here: https://plnkr.co/edit/ONwYevQ4NbvBVjTwARHl?p=preview My Code: app.js: var ...
Mindaugas's user avatar
0votes
2answers
5kviews

angularjs controller access directive scope value

I have this controller with directive inside my html code. The directive have scope value I would like access from the parent controller and show in the html. Hope my example code give you a simple ...
icode's user avatar
1vote
1answer
582views

Getting error when pass data between controllers using sample service

as part of angular js learning, i created small app that will pass the data between two controllers using services..below is my code to pass the data between two controllers.. Controller code <!...
Glory Raj's user avatar
1vote
1answer
868views

Angular $watch not working on controller variable updated by directive

I am trying to place a watch on controller variable which gets updated from a directive using function mapping. variable is getting updated and logged in console but watch on it not working. Code ...
Prateek's user avatar

153050per page
close